﻿<%@ Page Language="C#" MasterPageFile="~/city.master" AutoEventWireup="true" CodeFile="city_best.aspx.cs" Inherits="city_best"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
        <table cellpadding="0" cellspacing="0" style="width: 100%">
            <tr>
                <td style="width: 17px" valign="top">
                    &nbsp;</td>
                <td style="width: 160px" valign="top">
                    <table cellpadding="0" cellspacing="0" style="width: 164%; height: 32px;">
                        <tr>
                            <td>
                                by<br />
                                interest</td>
                        </tr>
                        <tr>
                            <td>
                                <img alt="" src="images/citypage/color_line.gif" 
                                    style="width: 58px; height: 4px" /></td>
                        </tr>
                    </table>
                <asp:DataList ID="DataList1" runat="server" RepeatColumns="1" ShowFooter="False" 
                    ShowHeader="False">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# Eval("to") %>' 
                            Text='<%# Eval("title") %>' ForeColor="#333333"></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Height="24px" />
                </asp:DataList>
                    <br />
                </td>
                <td style="width: 380px" valign="top">
                    <img alt="" src="images/citypage/ttop.gif" style="width: 297px; height: 30px" /><br />
                <asp:DataList ID="DataList2" runat="server" RepeatColumns="2" 
                        onselectedindexchanged="DataList2_SelectedIndexChanged">
                    <ItemTemplate>
                        <table class="style23" style="width: 170px">
                            <tr>
                                <td style="width: 76px">
                                    <asp:HyperLink ID="HyperLink6" runat="server" 
                                        ImageUrl='<%# Eval("main_pic_fn","city_imgs/1/{0}") %>' 
                                        NavigateUrl='<%# Eval("no","city_s.aspx?no={0}") %>'>HyperLink</asp:HyperLink>
                                </td>
                                <td valign="top">
                                    <asp:HyperLink ID="HyperLink5" runat="server" Font-Size="11px" 
                                        ForeColor="Black" NavigateUrl='<%# Eval("no","city_s.aspx?no={0}") %>' 
                                        Text='<%# Eval("title") %>'></asp:HyperLink>
                                    <br />
                                    <asp:Label ID="Label5" runat="server" Font-Size="11px" 
                                        Text='<%# Eval("ct_s_type.title") %>' ForeColor="#999999"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        
                    </ItemTemplate>
                </asp:DataList>
                    <br />
                    <br /><hr />
                                        <p class="style1">
                                            <span class="title1">Forum</span></p>
        <asp:GridView ID="GridView3" runat="server" BackColor="White" 
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" 
            Width="300px">
            <FooterStyle BackColor="#CCCC99" />
            <RowStyle BackColor="#F7F7DE" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Image ID="Image3" runat="server" 
                            ImageUrl='<%# Eval("profile_picture","user_imgs/1/{0}") %>' 
                            Width="50px" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ct_s_title" />
           
                <asp:HyperLinkField DataNavigateUrlFields="no" 
                    DataNavigateUrlFormatString="city_s_forum_show.aspx?no={0}" DataTextField="title" 
                    HeaderText="Subject" />
                <asp:BoundField DataField="reply_amount" HeaderText="Replies" 
                    SortExpression="replies" />
            </Columns>
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
                    <br />
                    <br />
                    <br /><hr />
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        GridLines="None" Width="90%" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Image ID="Image4" runat="server" 
                                        ImageUrl='<%# Eval("main_pic_fn","city_imgs/1/{0}") %>' Width="40px" />
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Title">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink1" runat="server" 
                                        NavigateUrl='<%# Eval("no", "city_s.aspx?no={0}") %>' 
                                        Text='<%# Eval("title") %>'></asp:HyperLink>
                                    <br />
                                    <asp:Label ID="Label5" runat="server" ForeColor="#999999" 
                                        Text='<%# Eval("ct_s_type.title") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="recommend_to_everyone" HeaderText="Recommend">
                                <ItemStyle Font-Size="20px" ForeColor="Gray" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td style="width: 284px" valign="top">
                    <img alt="" src="images/citypage/ltop.gif" style="width: 297px; height: 30px" /><br />
                    <table style="width: 100%">
                        <tr>
                            <td style="height: 47px">
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                        GridLines="None" Width="90%" ShowHeader="False">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Image ID="Image6" runat="server" 
                                        ImageUrl='<%# Eval("main_pic_fn","city_imgs/1/{0}") %>' Width="40px" />
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Title">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink9" runat="server" 
                                        NavigateUrl='<%# Eval("no", "city_s.aspx?no={0}") %>' 
                                        Text='<%# Eval("title") %>'></asp:HyperLink>
                                    <br />
                                    <asp:Label ID="Label8" runat="server" ForeColor="#999999" 
                                        Text='<%# Eval("ct_s_type.title") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ranking_local" HeaderText="Ranking" Visible="False">
                                <ItemStyle Font-Size="20px" ForeColor="Gray" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    
                    
                    <br />
                    <br /><span class="big_title_grey"><%=ct_name%> 
&nbsp;Locals</span><br />
                    <asp:DataList ID="DataList3" runat="server" RepeatColumns="3" 
                        RepeatDirection="Horizontal" Width="230px">
                        <ItemTemplate>
                            <table style="width: 75px" cellpadding=0 cellspacing=0>
                                <tr>
                                    <td>
                                        <asp:HyperLink ID="HyperLink9" runat="server" 
                                            ImageUrl='<%# Eval("profile_picture","user_imgs/1/{0}") %>' 
                                            NavigateUrl='<%# Eval("no","user_profile.aspx?no={0}") %>'>HyperLink</asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:HyperLink ID="HyperLink10" runat="server" 
                                            NavigateUrl='<%# Eval("no","user_profile.aspx?no={0}") %>' 
                                            Text='<%# Eval("nickname") %>' Font-Size="11px" ForeColor="Black"></asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    <br />
                    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
                    
                    <br />
                    <br />
                    <br />
                   
                   
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                                <asp:HyperLink ID="HyperLink8" runat="server" Font-Size="20px">HyperLink</asp:HyperLink>
&nbsp;<asp:Label ID="Label7" runat="server" Text="Label"></asp:Label>
                            <br />
                    
                    
                    <asp:Image ID="Image5" runat="server" Width="260px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
<p>
</p>    
    </asp:Content>

